// 当前委托 普通委托
export const currentCommOrdinaryCol = [
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "ID",
    dataIndex: "id",
    key: "id",
  },
  {
    title: "创建时间",
    dataIndex: "createTime",
    key: "createTime",
  },
  {
    title: "方向",
    dataIndex: "direction",
    key: "direction",
  },
  {
    title: "价格",
    dataIndex: "price",
    key: "price",
  },
  {
    title: "数量",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "剩余",
    dataIndex: "remaining",
    key: "remaining",
  },
  {
    title: "成交均价",
    dataIndex: "averagePrice",
    key: "averagePrice",
  },
  {
    title: "来源",
    dataIndex: "source",
    key: "source",
  },
  {
    title: "附加信息",
    dataIndex: "addInfor",
    key: "addInfor",
  },
  {
    title: "全部撤销",
    dataIndex: "undoAll",
    key: "undoAll",
  },
];

// 当前委托 条件委托
export const currentCommConditionCol = [
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "委托ID",
    dataIndex: "commissionId",
    key: "commissionId",
  },
  {
    title: "创建时间",
    dataIndex: "createTime",
    key: "createTime",
  },
  {
    title: "方向",
    dataIndex: "direction",
    key: "direction",
  },
  {
    title: "触发价",
    dataIndex: "triggerPrice",
    key: "triggerPrice",
  },
  {
    title: "委托价格",
    dataIndex: "commissionPrice",
    key: "commissionPrice",
  },
  {
    title: "数量",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "来源",
    dataIndex: "source",
    key: "source",
  },
  {
    title: "附加信息",
    dataIndex: "addInfor",
    key: "addInfor",
  },
  {
    title: "全部撤销",
    dataIndex: "undoAll",
    key: "undoAll",
  },
];

// 历史委托 普通委托
export const historyCommOrdinaryCol = [
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "ID",
    dataIndex: "id",
    key: "id",
  },
  {
    title: "创建时间",
    dataIndex: "createTime",
    key: "createTime",
  },
  {
    title: "结束时间",
    dataIndex: "endTIme",
    key: "endTIme",
  },
  {
    title: "方向",
    dataIndex: "direction",
    key: "direction",
  },
  {
    title: "委托价格",
    dataIndex: "commissionPrice",
    key: "commissionPrice",
  },
  {
    title: "数量",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "已成交",
    dataIndex: "alreadyTrans",
    key: "alreadyTrans",
  },
  {
    title: "成交均价",
    dataIndex: "averagePrice",
    key: "averagePrice",
  },
  {
    title: "附加信息",
    dataIndex: "addInfor",
    key: "addInfor",
  },
  {
    title: "结束原因",
    dataIndex: "endReason",
    key: "endReason",
  },
  {
    title: "来源",
    dataIndex: "source",
    key: "source",
  },
];

// 历史委托 条件委托
export const historyCommConditionCol = [
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "ID",
    dataIndex: "id",
    key: "id",
  },
  {
    title: "创建时间",
    dataIndex: "createTime",
    key: "createTime",
  },
  {
    title: "结束时间",
    dataIndex: "endTIme",
    key: "endTIme",
  },
  {
    title: "方向",
    dataIndex: "direction",
    key: "direction",
  },
  {
    title: "委托ID",
    dataIndex: "commissionId",
    key: "commissionId",
  },
  {
    title: "触发价",
    dataIndex: "triggerPrice",
    key: "triggerPrice",
  },
  {
    title: "委托价格",
    dataIndex: "commissionPrice",
    key: "commissionPrice",
  },
  {
    title: "数量",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "附加信息",
    dataIndex: "addInfor",
    key: "addInfor",
  },
  {
    title: "状态",
    dataIndex: "status",
    key: "status",
  },
  {
    title: "来源",
    dataIndex: "source",
    key: "source",
  },
];

// 资金流水
export const capitalFlowCol = [
  {
    title: "时间",
    dataIndex: "time",
    key: "time",
  },
  {
    title: "金额",
    dataIndex: "amount",
    key: "amount",
  },
  {
    title: "备注",
    dataIndex: "remark",
    key: "remark",
  },
  {
    title: "操作类型",
    dataIndex: "actionType",
    key: "actionType",
  },
];

// 成交记录
export const transactionRecordCol = [
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "委托ID",
    dataIndex: "commissionId",
    key: "commissionId",
  },
  {
    title: "数量",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "成交均价",
    dataIndex: "averagePrice",
    key: "averagePrice",
  },
  {
    title: "角色",
    dataIndex: "role",
    key: "role",
  },
  {
    title: "成交时间",
    dataIndex: "transactionTime",
    key: "transactionTime",
  },
];
// 历史仓位
export const historyPositionCol = [
  {
    title: "时间",
    dataIndex: "time",
    key: "time",
  },
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "方向",
    dataIndex: "direction",
    key: "direction",
  },
  {
    title: "盈亏",
    dataIndex: "profitAndLoss",
    key: "profitAndLoss",
  },
  {
    title: "来源",
    dataIndex: "source",
    key: "source",
  },
  {
    title: "操作",
    dataIndex: "action",
    key: "action",
  },
];

// 仓位
export const positionCol = [
  {
    title: "合约",
    dataIndex: "contract",
    key: "contract",
  },
  {
    title: "数量",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "账户市值",
    dataIndex: "accountMarketValue",
    key: "accountMarketValue",
  },
  {
    title: "开仓均价",
    dataIndex: "averageOpeningPrice",
    key: "averageOpeningPrice",
  },
  {
    title: "标记价格",
    dataIndex: "tagPrice",
    key: "tagPrice",
  },
  {
    title: "预估强平价",
    dataIndex: "estimatedPrice",
    key: "estimatedPrice",
  },
  {
    title: "盈亏平衡价",
    dataIndex: "breakevenPrice",
    key: "breakevenPrice",
  },
  {
    title: "保证金",
    dataIndex: "bond",
    key: "bond",
  },
  {
    title: "保证金率",
    dataIndex: "marginRatio",
    key: "marginRatio",
  },
  {
    title: "未实现盈亏（收益率）",
    dataIndex: "yieldRate",
    key: "yieldRate",
  },
  {
    title: "已实现盈亏",
    dataIndex: "realizedProfit",
    key: "realizedProfit",
  },
  {
    title: "减仓/平仓/反手开仓",
    dataIndex: "reducePositions",
    key: "reducePositions",
  },
  {
    title: "止盈止损",
    dataIndex: "profitAndLoss",
    key: "profitAndLoss",
  },
  {
    title: "自动减仓",
    dataIndex: "autoReducInventory",
    key: "autoReducInventory",
  },
];
